/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.app.dto.DeliveryDto;
import com.yami.shop.bean.model.Delivery;
import com.yami.shop.bean.vo.DeliveryOrderVO;

import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 *
 * @author lgh on 2018/11/26.
 */
public interface DeliveryService extends IService<Delivery> {

    /**
     * 根据物流ID与物流单号查找物流信息
     * @param dvyId 物流ID
     * @param expNo 物流单号
     * @param receiverMobile 收件人手机号
     * @return 物流信息
     * @throws UnsupportedEncodingException
     */
    DeliveryDto query(Long dvyId, String expNo, String receiverMobile) throws UnsupportedEncodingException;

    /**
     * 根据订单编号获取发货数量
     * @param orderNumbers
     * @return
     */
    List<DeliveryOrderVO> listDeliveryCountByOrderNumber(List<String> orderNumbers);
}
